package com.sc.nft.service;

import com.sc.nft.entity.ShareProfitDaoPool;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 分账结算池 服务类
 * </p>
 *
 * @author liGen
 * @since 2024-11-26
 */
public interface ShareProfitDaoPoolService {


    /**
     * 添加池中金额
     *
     * @param ecologyHatchId
     * @param collectionId
     * @param daoId
     * @param sourceDaoId
     * @param pointsId
     * @param amount
     * @param now
     * @return
     */
    Long addAmount(Long ecologyHatchId, Long collectionId, Long daoId, Long sourceDaoId, Long pointsId, BigDecimal amount, Date now);

    /**
     * 获取分账结算池中服务中心进入的池子
     *
     * @param ecologyHatchId
     * @param sourceDaoId
     * @return
     */
    List<ShareProfitDaoPool> getListByEcologyHatchIdAndSourceDaoId(Long ecologyHatchId, Long sourceDaoId, Boolean isSettle,Date now);

    /**
     * 修改结算状态
     *
     * @param id
     * @param isSettle
     * @return
     */
    Boolean updateSettle(Long id, Boolean isSettle);
}
